home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Developers / NeoIntroTCL3.0 folder / TCL / NeoBench / Includes / CNeoBenchPane.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-07  |  1.5 KB  |  56 lines  |  [TEXT/KAHL]

  1. /****
  2.  * CNeoBenchPane.h
  3.  *
  4.  *    Pane class for a typical application.
  5.  *
  6.  ****/
  7.  
  8. #define _H_CNeoBenchPane            /* Include this file only once */
  9. #include <CPane.h>
  10. #include <CButton.h>
  11. #include "NeoBench.h"
  12.  
  13. class  CRawText;
  14. class  CIntegerText;
  15.  
  16. // Constants relating to resources
  17.  
  18. #define cmdSTOP        1000
  19. #define cmdGO        1001
  20.  
  21. struct CNeoBenchPane : CPane {
  22.  
  23.     CRawText    *NeoRawTexts[kMaxPhase +1][kMaxCol +1];    // the texts displaying the numbers
  24.     CIntegerText*NeoEditTexts[kMaxPhase +1];            // the TOTALS editable texts
  25.     CRawText    *NeoStatsAcross[kMaxCol +1];            // Column names
  26.     CRawText    *NeoPhaseNames[kMaxPhase +1];            // Phase names
  27.     CButton        *NeoStopButton;                            // Stop button
  28.     CButton        *NeoGoButton;                            // Go button
  29.  
  30.     long        maxValue[kMaxPhase +1];
  31.     long        minValue[kMaxPhase +1];
  32.  
  33.                                     /** Contruction/Destruction **/
  34.     void        INeoBenchPane(CView *anEnclosure, CBureaucrat *aSupervisor,
  35.                             short aWidth, short aHeight,
  36.                             short aHEncl, short aVEncl,
  37.                             SizingOption aHSizing, SizingOption aVSizing);
  38.  
  39.                                     /** Drawing **/
  40.     void        Draw(Rect *area);
  41.  
  42.                                     /** Mouse **/
  43.     void        DoClick(Point hitPt, short modifierKeys, long when);
  44.     Boolean        HitSamePart(Point pointA, Point pointB);
  45.  
  46.                                     /** Cursor **/
  47.     void        AdjustCursor(Point where, RgnHandle mouseRgn);
  48.                                     /** Scrolling **/
  49.  
  50.     long        GetTotalNum(short index);
  51.     void        ClearStatPanes(void);
  52.     void        DoKeyDown(char theChar, Byte keyCode, EventRecord *macEvent);
  53.     void        DoCommand(long    theCommand);
  54.     void        UpdateCol(short aPhase, short aRow, long aValue);
  55. };
  56.